﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ServBus.ListForm2010.Setup.Utilities;

namespace ServBus.ListForm2010.Setup.Validators
{
    public class OSValidator : BaseValidator
    {
        public override string CheckItemText
        {
            get { return Properties.Resources.CheckingOS; }
        }

        public override string ValidText
        {
            get { return string.Format(Properties.Resources.CheckPassOS, Constants.REQUEST_CPU); }
        }

        public override string InvalidText
        {
            get { return string.Format(Properties.Resources.CheckFailedOS, Constants.REQUEST_CPU); }
        }

        public override void Validate()
        {
            this.Validated = (IntPtr.Size * 8 == Constants.REQUEST_CPU);
        }
    }
}
